package biz.impl;

import java.util.List;

import biz.AddressBiz;
import dao.AddressDao;
import dao.impl.AddressDaoImpl;
import entity.Address;

public class AddressBizImpl implements AddressBiz {
	private AddressDao addressDao = new AddressDaoImpl();
	@Override
	public List<Address> queryAllAddress() {
		return addressDao.queryAllAddress();
	}

	@Override
	public Address queryAddressByAddressId(int addressId) {
		return addressDao.queryAddressByAddressId(addressId);
	}

	@Override
	public void addAddress(Address address) {
		addressDao.addAddress(address);
		
	}

}
